<!doctype html>
<html>
    <head>
        <title>video controls in a frameless document</title>
        <script src="../resources/testharness.js"></script>
        <script src="../resources/testharnessreport.js"></script>
    </head>
    <body>
        <script>
            test(function()
            {
                var doc = document.implementation.createHTMLDocument();
                var video = doc.createElement("video");
                doc.body.appendChild(video);
                video.controls = true;
                // pass if we didn't crash
            });
        </script>
    </body>
</html>
